package cn.tedu.egmvc1.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class User {
    /**
     * http://localhost:8080/v1/users/insert?username=xxx&password=yyy&nickname=zzz
     *
     */
    @RequestMapping(value = "/v1/users/insert")
    @ResponseBody
    public String UserController(String username,String password,String nickname){
        return username+"-"+password+"-"+nickname;
    }
    @RequestMapping("/v1/users/userList")
    @ResponseBody
    public String UserController1(){
        return  "查询用户列表成功";
    }
}
